package main;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import comunicacao.RmiClient;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Leonardo Lino
 */
@ManagedBean
@RequestScoped
public class Principal {
    
    private String name = "ola";

    /**
     * Creates a new instance of Principal
     */
    public Principal() {
      // name= start();
        //System.out.println("meu test");
    }
    
    private String start(){
        
        RmiClient rc = new RmiClient();
       return rc.start();
    }
    
    
    

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    
    
}
